getParcelableArrayList

Returns the value associated with the given key, or null if:

  • No mapping of the desired type exists for the given key.
  • A null value is explicitly associated with the key.
  • The object is not of type clazz.

Note: if the expected value is not a class provided by the Android platform, you must call setClassLoader with the proper ClassLoader first. Otherwise, this method might throw an exception or return null.

Compatibility behavior:

  • SDK 34 and above, this method matches platform behavior.
  • SDK 33 and below, this method will not check the list elements' types.

Return

an ArrayListvalue, or

Parameters

in

The bundle to retrieve from.

key

a String, or null

clazz

The type of the items inside the array list. This is only verified when unparceling.